package com.example.core.ext

import android.content.res.Resources
import android.util.TypedValue

object FloatExt {
    private val displayMetrics = Resources.getSystem().displayMetrics
    fun Float.toPx() = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, this, displayMetrics)
    
}